import { TableColumnObject } from 'amis/lib/renderers/Table'
import baseEnumColumnUtils from '@/components/amis/common/BaseEnumColumnUtils/baseEnumColumnUtils'
import OssApplicationStatusEnum from '@/core/oss/enums/OssApplicationStatusEnum'

class OssApplicationStatusColumnUtils {
	getSchema = (parmas?: Partial<TableColumnObject>): TableColumnObject => {
		const mergeSchema = Object.assign(
			{
				name: 'status',
				label: '状态',
				baseEnum: OssApplicationStatusEnum,
			},
			parmas,
		)
		return baseEnumColumnUtils.getSchema(mergeSchema)
	}
}

export default new OssApplicationStatusColumnUtils()
